<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Repair Center Landing Page</title>
<link href="/css/template.css" rel="stylesheet" type="text/css" />
<?php echo Model_Cnotice::css('2014-08-07');?>

</head>

<body style="font-family: Arial, Helvetica, sans-serif">
<?php echo Model_Cnotice::content('2014-08-07', '20140807mainpage.jpg');?>
<?php

$idShop = 0;
$rCenterMapping = $this->rCenterMapping;
$shopHead = $this->shophead;

$idShop = $rCenterMapping [$shopHead];
$thisMonday = Model_DatetimeHelper::getThisWeekMonday ( "" );

?>

<?php if($this->check ==true){?>
<table width="900" border="1" cellspacing="0" cellpadding="10"
		style="font-size: 14px;">
		<tr>
			<th scope="col"><img
				src="http://www.phonecollection.com.au/shopping/img/logo.jpg?1357614293"
				width="165" height="55" /></th>
			<th scope="col"><h1 class="theh1">  [<?php echo $this->shophead; ?>] <?php  echo $this->shopname['name_of_shop']; ?></h1>
			</th>
			<th align="right"><a href="http://www.lost.amta.org.au/IMEI"
				target="_blank">CHECK IMEI STATUS</a><br /> <a
				href="https://selfsolve.apple.com/agreementWarrantyDynamic.do"
				target="_blank"><img src="/css/atten.jpg" alt="" width="45"
					height="35" />CHECK APPLE WARRANTY</a></th>
		</tr>
		<tr>
			<td colspan="2"><h2 class="theh1">Repairs</h2></td>
			<td>
				<form id="form1" name="form1" method="post"
					action="/repaircenter/showstatusbyjobid">
					<h2>
						JobID /IMEI /Device ID Search<br /> <input type="text"
							name="id_job" id="id_job"
							style="border: #333 solid 1px; margin: 3px;" /> <input
							type="hidden" name="shop_head" id="shop_head"
							value="<?php echo $this->shophead;?>" /> <input type="submit"
							name="go" id="go" value="Serach" />
					</h2>
				</form>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<table width="100%" border="0" cellspacing="0" cellpadding="10">
					<tr>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/new/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/newjob.jpg" alt="" width="100"
								height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/showstatus/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/checkstatus.jpg" alt=""
								width="100" height="100" border="0" /></a></th>
						<?php /*if(!in_array($this->shophead,array("EPIC","CBIC","PMIC","HPIC","HPPC"))){?>		
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/parts-record-with-borrow/shophead/<?php echo $this->shophead;?>/shop/<?php echo $idShop;?>/jobid/parts"
							target="_blank"><img src="/css/partssales.png" alt="" width="100"
								height="100" border="0" /></a></th>
						<?php } ?> */ ?>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/showallhistory/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/history.jpg" alt="" width="100"
								border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/parts-record-with-borrow/shophead/<?php echo $this->shophead;?>/shop/<?php echo $idShop;?>/jobid/BORROWPARTS"
							target="_blank"><img src="/css/borrow.jpg" alt="" width="100"
								border="0" /></a></th>
					</tr>
					<tr>
						<td align="center" valign="middle"><a
							href="/repaircenter/new/shop/<?php echo $this->shophead; ?>"
							target="_blank">New Job</a></td>
						<td align="center" valign="middle"><a
							href="/repaircenter/showstatus/shop/<?php echo $this->shophead; ?>"
							target="_blank">Current Status</a></td>
							
						<?php /*if(!in_array($this->shophead,array("EPIC","CBIC","PMIC","HPIC","HPPC"))){?>	
						<td align="center" valign="middle"><a
							href="/repairparts/parts-record-with-borrow/shophead/<?php echo $this->shophead;?>/shop/<?php echo $idShop;?>/jobid/parts"
							target="_blank">Parts Sales</a></td>
						<?php }?>*/ ?>
						<td align="center" valign="middle"><a
							href="/repaircenter/showallhistory/shop/<?php echo $this->shophead; ?>"
							target="_blank">Job History</a></td>
						<td align="center" valign="middle"><a
							href="/repairparts/parts-record-with-borrow/shophead/<?php echo $this->shophead;?>/shop/<?php echo $idShop;?>/jobid/BORROWPARTS">Borrow
								It</a></td>
					</tr>
					<tr>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/quick-form/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/quickform.jpg" alt="" width="100"
								height="100" border="0" /></a></th> 
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/transfer-mobile/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/tracking_big.jpg" alt=""
								width="100" height="100" border="0" /></a></th>
						<?php if(in_array($this->shophead,array("ADPC","CLPC","WLIC","HPIC","HPPC"))){?>		
						<th align="center" valign="middle" scope="col">
						<a href="/repairparts/phone-stock-take/shop/<?php echo $this->shophead; ?>"
							target="_blank"><img src="/css/phone_stock.jpg" alt=""
								width="100" height="100" border="0" /></a>
						</th>
						<?php }?>
						<?php if(in_array($this->shophead,array("WBPC","WBIC","EPIC","BSIC","HPPC"))){?>
						<th align="center" valign="middle" scope="col">
						 <img src="/css/pickup_icon.png" width="100" height="100" />
						</th>
        				<?php }?>
						<th align="center" valign="middle" scope="col">
						&nbsp;
						</th>
					</tr>
					<tr>

						<td align="center" valign="middle"><a
							href="/repaircenter/quick-form/shop/<?php echo $this->shophead; ?>"
							target="_blank">Simple Job</a></td>	
						<td align="center" valign="middle"><a
							href="/repaircenter/transfer-mobile/shop/<?php echo $this->shophead; ?>"
							target="_blank">Tracking System</a></td>	
					 <?php if(in_array($this->shophead,array("ADPC","CLPC","WLIC","HPIC","HPPC"))){?>	
						<td align="center" valign="middle">
						
						<a href="/repairparts/phone-stock-take/shop/<?php echo $this->shophead; ?>"
							target="_blank">Daily Phone Stock Take</a>
						
						</td>
					 <?php }?>
					 <?php if(in_array($this->shophead,array("WBPC","WBIC","EPIC","BSIC","HPPC"))){?>						
						<td align="center" valign="middle">
							<a href="/repaircenter/pickup-device/shop/<?php echo $this->shophead; ?>"
							target="_blank">Pickup Wizard</a>
        
        				</td>
       				 <?php }?>
						<td align="center" valign="middle">
							&nbsp;
        				</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2"><h2 class="theh1">Stocks &amp; Faulty RMA Return</h2></td>
			<td><form id="form2" name="form2" method="post"
					action="/repairparts/confirm-borrow/bcode/">
					<h2>
						Borrow Parts Search<br /> <input type="text" name="bcode"
							id="bcode" style="border: #333 solid 1px; margin: 3px;" /> <input
							type="submit" name="btn_check" id="btn_check"
							value="Check Borrow Code" />
					</h2>
				</form></td>
		</tr>
		<tr>
			<td colspan="3">
				<table width="100%" border="0" cellspacing="0" cellpadding="10">
					<tr>
						<th align="center" valign="middle" scope="col"><img
							src="/css/faulty.jpg" alt="" width="100" height="100" /></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/stock-list-all/cate/0" target="_blank"><img
								src="/css/stock.jpg" alt="" width="100" height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/shop-stock-main/shop/<?php echo $idShop;?>"><img
								src="/css/stockbycategory.jpg" alt="" width="100" height="100" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/part-move-history-shop/shop/<?php echo $idShop;?>"
							target="_blank"><img src="/css/movehistory.png" alt=""
								width="100" height="100" border="0" /></a></th>
					</tr>
					<tr>
						<td align="center" valign="middle"><form id="form2" name="form1"
								method="post" action="/repairparts/shop-faulty-product">
								<input type="text" name="barcode_code" id="barcode_code"
									style="border: #333 solid 1px; margin: 3px; width: 150px;" /> <input
									type="hidden" name="shop_head" id="shop_head"
									value="<?php echo $this->shophead;?>" /> <input type="hidden"
									name="id_shop" id="id_shop"
									value="<?php echo ($idShop == 99)?"":$idShop; ?>" /> <br /> <input
									type="submit" name="go2" id="go2" value="Create Faulty RMA" />

							</form></td>
						<td align="center" valign="middle"><a
							href="/repairparts/stock-list-all/cate/0" target="_blank">Whole
								Stock<br /> List(Shop + Warehouse)
						</a></td>
						<td align="center" valign="middle"><a
							href="/repairparts/shop-stock-main/shop/<?php echo $idShop;?>"
							target="_blank">Stock By<br /> Category
						</a></td>
						<td align="center" valign="middle"><a
							href="/repairparts/part-move-history-shop/shop/<?php echo $idShop;?>"
							target="_blank">Parts Move<br /> History
						</a></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2"><h2 class="theh1">Order &amp; Analysis</h2></td>
			<td align="right"><a
				href="/repairparts/shop-parts-summary/shop/<?php echo $idShop;?>/custpart/yes"
				target="_blank">Customer Parts You should Return</a></td>
		</tr>
		<tr>
			<td colspan="3"><table width="100%" border="0" cellspacing="0"
					cellpadding="10">
					<tr>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/pre-stock-take/shop/<?php echo $idShop;?>"
							target="_blank"><img src="/css/orderonline.jpg" alt=""
								width="100" height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/pre-parts-stock-take/shop/<?php echo $idShop; ?>"
							target="_blank"><img src="/css/parts_stockTake.jpg" alt=""
								width="100" height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repaircenter/order-confirm/pon/OD<?php echo str_pad($idShop,2,'0',STR_PAD_LEFT).$thisMonday;?>"
							target="_blank"><img src="/css/countdelivery.jpg" alt=""
								width="100" height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/shop-parts-summary/shop/<?php echo $idShop;?>"
							target="_blank"><img src="/css/total.jpg" alt="" width="100"
								height="100" border="0" /></a></th>
						<th align="center" valign="middle" scope="col"><a
							href="/repairparts/parts-analysis/shop/<?php echo $idShop;?>"
							target="_blank"><img src="/css/analy.jpg" alt="" width="100"
								height="100" border="0" /></a></th>
					</tr>
					<tr>
      	<?php if($this->shophead != 'WHPC'){?>
        <td align="center" valign="middle"><a
							href="/repaircenter/pre-stock-take/shop/<?php echo $idShop;?>"
							target="_blank">Online Order</a><a
							href="/repaircenter/pre-stock-take/shop/<?php echo $idShop;?>"
							target="_blank"><br /> ( LCD StockTake ) </a></td>
						<td align="center" valign="middle"><a
							href="/repaircenter/pre-parts-stock-take/shop/<?php echo $idShop; ?>"
							target="_blank">Stock Take<br /> ( Non LCD Parts )
						</a></td>
        <?php }else{?>
        <td align="center" valign="middle"><a
							href="/repaircenter/wh-stock-take/shop/<?php echo $this->shophead;?>/part/SCREEN"
							target="_blank">WH Stock Take<br />(LCD Stock Take)
						</a></td>
						<td align="center" valign="middle"><a
							href="/repaircenter/wh-stock-take/shop/<?php echo $this->shophead;?>/part/PARTS"
							target="_blank">WH Stock Take<br />(Non LCD Parts)
						</a></td>
        <?php }?>
        <td align="center" valign="middle"><a
							href="/repaircenter/order-confirm/pon/OD<?php echo str_pad($idShop,2,'0',STR_PAD_LEFT).$thisMonday;?>"
							target="_blank">Count Delivery</a></td>
						<td align="center" valign="middle"><a
							href="/repairparts/shop-parts-summary/shop/<?php echo $idShop;?>"
							target="_blank">Weekly Summary</a></td>
						<td align="center" valign="middle"><a
							href="/repairparts/parts-analysis/shop/<?php echo $idShop;?>"
							target="_blank">Stock Analysis</a></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td colspan="3">&nbsp;</td>
		</tr>
	</table>
<?php }else{?>
	<h2>Shop not exist Please re-open your company info page</h2>
<?php }?>
</body>
</html>
